/**
 * 
 *//*
package com.cipe.cmrs.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cipe.cmrs.model.Paymentstatus;
import com.cipe.cmrs.model.User;
import com.cipe.cmrs.util.DateUtil;

*//**
 * @author Incepio
 * 
 *//*
@Service
@Transactional
public class PaymentrequeststatusService extends BaseService<Paymentstatus> {

	@Autowired
	private UserService	userService;

	public Paymentstatus savePaymentrequeststatus(Paymentstatus paymentrequeststatus, Integer userId) {
		if (paymentrequeststatus != null) {
			User user = userService.findById(userId);
			Paymentstatus dbPaymentrequeststatus = findById(paymentrequeststatus.getId());
			if (dbPaymentrequeststatus == null) {
				dbPaymentrequeststatus = new Paymentstatus();
				dbPaymentrequeststatus.setCreatedBy(user);
				dbPaymentrequeststatus.setCreationDate(DateUtil.getCurrentDate());
			}
			dbPaymentrequeststatus.setDisplayName(paymentrequeststatus.getDisplayName());
			dbPaymentrequeststatus.setDescription(paymentrequeststatus.getDescription());
			dbPaymentrequeststatus.setUpdatedBy(user);
			dbPaymentrequeststatus.setUpdationDate(DateUtil.getCurrentDate());
			return merge(dbPaymentrequeststatus);
		}
		return null;
	}
}
*/